package com.example.adouble.cehuamenu.ui.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import butterknife.ButterKnife;
import cn.bmob.v3.Bmob;

/**
 * 封装了Activity
 * 创建的时候能够自动完成以下操作
 * 1.初始化Bmob
 * 2.ButterKnife.bind(this)
 */
public class BaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Bmob.initialize(this,"d4c6fb4b31cf44e07c7682797f8d055e");
    }

    @Override
    public void setContentView(int layoutResID) {
        super.setContentView(layoutResID);
        ButterKnife.bind(this);
    }

}
